<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../MasterPages/MedianamikModule.Master" CodeBehind="RoleManagement.aspx.cs" Inherits="Medianamik.UI.SecurityManagement.RoleManagement" %>

<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
    <asp:LinkButton ID="lnkSave" CssClass="Action BtSauvegarder" runat="server" OnClick="Save_Click"><asp:localize runat="server" Text="<%$ Resources: Medianamik_SecurityManagement,SaveRole%>"></asp:localize></asp:LinkButton>
    <a class="Action BtAnnuler" href="<%=LIST_PAGE %>"><asp:Localize runat="server" Text="<%$ Resources: Medianamik_Global,Cancel %>"></asp:Localize></a>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">

	<h2><%= IsNew ? Resources("Medianamik_SecurityManagement", "NewRoleTitle") : RoleParam %></h2>
	<p><span class="ChampObligatoire">*</span><asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: Medianamik_Global, RequiredField %>"></asp:Literal></p>
    <asp:ValidationSummary CssClass="ValidationSummary" runat="server" />
	<fieldset id="FormUtilisateur">
		<asp:MultiView runat="server" ID="mvRoleName" ActiveViewIndex="0">
			<asp:View runat="server" ID="vwEnabled" >
				<p>
				    <label><span class="ChampObligatoire">*</span><asp:Literal ID="Literal2" runat="server" Text="<%$Resources:Medianamik_SecurityManagement, RoleNameLabel  %>"></asp:Literal></label>
				    <asp:TextBox id="txtRoleName" runat="server" CssClass="TxtBox" TabIndex="1"></asp:TextBox>
				    <asp:CustomValidator runat="server" ValidateEmptyText="true" ID="cvRoleName" OnServerValidate="cvRoleName_ServerValidate" ControlToValidate="txtRoleName" Display="None"></asp:CustomValidator>
				</p>
			</asp:View>
			<asp:View runat="server" ID="vwDisabled"><!--  --></asp:View>
		</asp:MultiView>
		<med:TranslatorBox id="RoleTranslator" runat="server" Label="<%$ Resources: Medianamik_SecurityManagement, RoleNameTranslatorLabel %>" Required="true" ErrorMessage="<%$ Resources: Medianamik_SecurityManagement, RoleNameTranslatorLabelRequired %>" ErrorMessageHidden="True"/>
		<p><label><asp:Literal ID="Literal3" runat="server" Text="<%$Resources: Medianamik_SecurityManagement, GroupsLabel  %>"></asp:Literal></label><med:GroupCheckBoxList id="chkGroups" runat="server"></med:GroupCheckBoxList></p>
	</fieldset>

</asp:Content>
